package tech.aistar.corejava.day11.homework;

/**
 * Created by 李雨昂 on 2019/7/29.
 */
public class TestBook {
    public static void main(String[] args) {

        IBookDao bookDao = new BookDaoImpl();

        Book b1 = new Book(1,"了不起的盖茨比","忘了",20.0);
        Book b2 = new Book(2,"刀锋","毛姆",35.0);
        Book b3 = new Book(3,"鬼吹灯","天下霸唱",296.0);
        Book b4 = new Book(4,"盗墓笔记","南派三叔",329.0);

        bookDao.save(b1);
        bookDao.save(b2);
        bookDao.save(b3);
        bookDao.save(b4);


        System.out.println(bookDao.findAll());
        //bookDao.delById(1);
        //bookDao.delByPrice(100);


    }
}
